import Vue from 'vue'
import App from './App'
import store from './store'

// store挂载到原型
Vue.prototype.$store = store;

Vue.config.productionTip = false

App.mpType = 'app'

import uView from "uview-ui";
Vue.use(uView);

// 引入过滤器
import filters from './filters/index'
//过滤器统一处理加载
Object.keys(filters).forEach((key) => {
	Vue.filter(key, filters[key][key])
})

// 引入工具函数
import gm from "@/util/util.js";
Vue.prototype.$gm = gm;

// 全局挂载网络请求
import wyMusicApi from "@/util/wyMusicApi.js"
Vue.prototype.api = wyMusicApi;
import myRequest from '@/util/http.js'
Vue.prototype.myRequest = myRequest.myRequest;


const app = new Vue({
	store,	//store 对象
	...App
})
app.$mount()
